﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ReallyReallyReallySimpleRoguelike;
using System.Drawing;

namespace ReallyReallyReallySimpleRoguelike.Entities
{
    /// <summary>
    /// Steps are the linking object between different dungeon levels
    /// </summary>
    public class Stairwell: Tile
    {
        Constants.StepDirection stepDirection;

        public Constants.StepDirection StepDirection
        {
            get { return stepDirection; }
            set { stepDirection = value; }
        } 
        
        public Stairwell(int x, int y, Constants.StepDirection d)
            : base(x, y)
        {
            ImageCharacter = Constants.StepsImage;
            StepDirection = d;
            if (StepDirection == Constants.StepDirection.Up)
                this.Color = Constants.StepUpColor;
            else
                this.Color = Constants.StepDownColor;    
        }

        public Stairwell(Point p, Constants.StepDirection d)
            : base()
        {
            this.X = p.X;
            this.Y = p.Y;
            ImageCharacter = Constants.StepsImage;
            if (StepDirection == Constants.StepDirection.Up)
                this.Color = Constants.StepUpColor;
            else
                this.Color = Constants.StepDownColor;
        }
    }
}
